home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 4⁄13⁄90 / 1096-Re None-Apr90 < prev    next >
Encoding:
Text File  |  1990-04-16  |  1.5 KB  |  43 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    0969677                         13-April-90        01:41PDT
  4.  
  5. From:   D0416                           Futuresoft System Design,PRT
  6.  
  7. To:     POWERUP.ENG                     Power Up Software,PRT
  8.  
  9. cc:     MACAPP.TECH$                    MacApp Technical
  10.  
  11. Sub:    RE- None
  12.  
  13. James,
  14.  
  15. RE: PostCommand in TCmdButton.Trackmouse or TCmdButton.DoChoice?
  16.  
  17. I say DoChoice. Why? Because in the true spirit of MacApp, always bypass doing
  18. any real work until you absolutely have to:-).
  19.  
  20. But seriously, I like calling PostCommand in DoChoice better than Trackmouse
  21. because:
  22.  
  23.  1) TrackMouse should really ONLY be concerned with… _tracking_the_mouse_, not
  24. posting commands. Yes, you can change the “current” command in a
  25. TView.TrackMouse but that should usually be done based on decisions done while
  26. _tracking_the_mouse_.
  27.  
  28. Usually you are NOT changing commands while mouse tracking and you should delay
  29. posting a command until DoChoice is called. This also allows you to override
  30. TrackMouse easily without worrying also about posting commands.
  31.  
  32. 2) If I was looking to see what TCmdButton does, I would first look at
  33. TCmdButton.DoChoice (NOT TrackMouse) because the method’s name sounds like
  34. something is going to be done there. [Again, in the true spirit of MacApp,
  35. nothing really would be DONE and we would simply instantiate and post another
  36. object (a TCommand) to bypass doing any real work (g)] But I think you get the
  37. idea.
  38.  
  39. Just an opinion, I post,
  40.  Ken_Addison.PostCommand(aCloseLinkCmd)
  41.  FutureSoft System Designs, Inc.
  42.  
  43.